package com.ftg.learn.framework.springframework.core.official;

import lombok.Data;

/**
 * 产品类
 *  把这个类 移交给spring ioc container
 *   帮助我们实例化，
 *
 *   1 : xml base
 *   2 : annotation base
 *   3 : java base
 *   -- 使用
 *   - 引依赖 spring core beas context spel
 *   - *.xml 做为 xmlbase配置文件
 *   - 写大量待注入的类
 *   - 在配置文件里面注入这些类
 *
 *   - 用一下吧  实例化一个容器
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/12 上午10:15
 */
public class Product extends ParentProduct{

    public Product(){
        System.out.println("构造方法");
    }

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    private double price;

    private String desc;

    private Supplier supplier;

    public String getDesc(){
        return "sdfjdslkjflkdsjklfds";
    }

    public void ttt(){
        //为类里的一些参数做初始化
        System.out.println("55555.。。。");
    }

}
